package cn.echogo.framework.model;

import java.util.Map;

import com.google.gson.reflect.TypeToken;

/**
 * 参考：http://wiki.open.t.qq.com/index.php/返回错误码说明
 * @author rongxinhua
 *
 */
public class ResponseEntity implements DataExtractible {
	
	public static final int SUCCESS = 0;
	public static final int ERROR = -1;
	
	/**
	 * 返回值:0成功返回， 1参数错误， 2频率受限， 3鉴权失败， 4服务器内部错误
	 */
	private int ret;
	
	/**
	 * 返回值描述
	 */
	private String msg;
	
	/**
	 * 二级错误字段
	 */
	private int errcode;
	
	/**
	 * 数据体报文(Json格式)
	 */
	private String data;
	
	/**
	 * 数据对象集
	 */
	private Map<String, Object> dataObjMap;

	public int getRet() {
		return ret;
	}

	public void setRet(int ret) {
		this.ret = ret;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public int getErrcode() {
		return errcode;
	}

	public void setErrcode(int errcode) {
		this.errcode = errcode;
	}

	public String getData() {
		return data;
	}

	public void setData(String data) {
		this.data = data;
	}




}
